package com.szrt.day20170505.ch04;


/**
 * 用链表模拟二叉树
 * @author zsrt
 *
 */
public class Node {

	/**
	 * 数据域
	 */
	private int data;
	
	
	
	private Node leftChild;
	
	
	private Node rightChild;

	
	public Node(int data){
		this.data=data;
	}
	
	public Node(){}

	public int getData() {
		return data;
	}


	public void setData(int data) {
		this.data = data;
	}


	public Node getLeftChild() {
		return leftChild;
	}


	public void setLeftChild(Node leftChild) {
		this.leftChild = leftChild;
	}


	public Node getRightChild() {
		return rightChild;
	}


	public void setRightChild(Node rightChild) {
		this.rightChild = rightChild;
	}
	
	
	
	
	
}
